<template>
  <div class="app-container">
    <!-- 对话框(添加 / 修改) -->
    <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="45%" v-dialogDrag append-to-body>
      <el-form ref="formRef" :model="formData" :rules="formRules" v-loading="formLoading" label-width="100px">
                    <el-form-item label="证券简称" prop="secname">
                      <el-input v-model="formData.secname" placeholder="请输入证券简称" />
                    </el-form-item>
                    <el-form-item label="证券代码" prop="seccode">
                      <el-input v-model="formData.seccode" placeholder="请输入证券代码" />
                    </el-form-item>
                    <el-form-item label="机构名称" prop="orgname">
                      <el-input v-model="formData.orgname" placeholder="请输入机构名称" />
                    </el-form-item>
                    <el-form-item label="公告日期" prop="declaredate">
                      <el-date-picker clearable v-model="formData.declaredate" type="date" value-format="timestamp" placeholder="选择公告日期" />
                    </el-form-item>
                    <el-form-item label="开始日期" prop="startdate">
                      <el-date-picker clearable v-model="formData.startdate" type="date" value-format="timestamp" placeholder="选择开始日期" />
                    </el-form-item>
                    <el-form-item label="截止日期" prop="enddate">
                      <el-date-picker clearable v-model="formData.enddate" type="date" value-format="timestamp" placeholder="选择截止日期" />
                    </el-form-item>
                    <el-form-item label="报告年度" prop="f001d">
                      <el-input v-model="formData.f001d" placeholder="请输入报告年度" />
                    </el-form-item>
                    <el-form-item label="合并类型编码" prop="f002v">
                      <el-input v-model="formData.f002v" placeholder="请输入合并类型编码" />
                    </el-form-item>
                    <el-form-item label="合并类型" prop="f003v">
                      <el-input v-model="formData.f003v" placeholder="请输入合并类型" />
                    </el-form-item>
                    <el-form-item label="报表来源编码" prop="f004v">
                      <el-input v-model="formData.f004v" placeholder="请输入报表来源编码" />
                    </el-form-item>
                    <el-form-item label="报表来源" prop="f005v">
                      <el-input v-model="formData.f005v" placeholder="请输入报表来源" />
                    </el-form-item>
                    <el-form-item label="销售商品、提供劳务收到的现金	单位：元" prop="f006n">
                      <el-input v-model="formData.f006n" placeholder="请输入销售商品、提供劳务收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="客户存款和同业存放款项净增加额	单位：元" prop="f072n">
                      <el-input v-model="formData.f072n" placeholder="请输入客户存款和同业存放款项净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="向中央银行借款净增加额	单位：元" prop="f073n">
                      <el-input v-model="formData.f073n" placeholder="请输入向中央银行借款净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="向其他金融机构拆入资金净增加额	单位：元" prop="f074n">
                      <el-input v-model="formData.f074n" placeholder="请输入向其他金融机构拆入资金净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到原保险合同保费取得的现金	单位：元" prop="f077n">
                      <el-input v-model="formData.f077n" placeholder="请输入收到原保险合同保费取得的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到再保险业务现金净额	单位：元" prop="f078n">
                      <el-input v-model="formData.f078n" placeholder="请输入收到再保险业务现金净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="保户储金及投资款净增加额	单位：元" prop="f079n">
                      <el-input v-model="formData.f079n" placeholder="请输入保户储金及投资款净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="处置交易性金融资产净增加额	单位：元" prop="f080n">
                      <el-input v-model="formData.f080n" placeholder="请输入处置交易性金融资产净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="收取利息、手续费及佣金的现金	单位：元" prop="f081n">
                      <el-input v-model="formData.f081n" placeholder="请输入收取利息、手续费及佣金的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="拆入资金净增加额	单位：元" prop="f082n">
                      <el-input v-model="formData.f082n" placeholder="请输入拆入资金净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="回购业务资金净增加额	单位：元" prop="f083n">
                      <el-input v-model="formData.f083n" placeholder="请输入回购业务资金净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到的税费返还	单位：元" prop="f007n">
                      <el-input v-model="formData.f007n" placeholder="请输入收到的税费返还	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到其他与经营活动有关的现金	单位：元" prop="f008n">
                      <el-input v-model="formData.f008n" placeholder="请输入收到其他与经营活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营活动现金流入小计	单位：元" prop="f009n">
                      <el-input v-model="formData.f009n" placeholder="请输入经营活动现金流入小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="购买商品、接受劳务支付的现金	单位：元" prop="f010n">
                      <el-input v-model="formData.f010n" placeholder="请输入购买商品、接受劳务支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="客户贷款及垫款净增加额	单位：元" prop="f084n">
                      <el-input v-model="formData.f084n" placeholder="请输入客户贷款及垫款净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="存放中央银行和同业款项净增加额	单位：元" prop="f085n">
                      <el-input v-model="formData.f085n" placeholder="请输入存放中央银行和同业款项净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付原保险合同赔付款项的现金	单位：元" prop="f086n">
                      <el-input v-model="formData.f086n" placeholder="请输入支付原保险合同赔付款项的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付利息、手续费及佣金的现金	单位：元" prop="f087n">
                      <el-input v-model="formData.f087n" placeholder="请输入支付利息、手续费及佣金的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付保单红利的现金	单位：元" prop="f088n">
                      <el-input v-model="formData.f088n" placeholder="请输入支付保单红利的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付给职工以及为职工支付的现金	单位：元" prop="f011n">
                      <el-input v-model="formData.f011n" placeholder="请输入支付给职工以及为职工支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付的各项税费	单位：元" prop="f012n">
                      <el-input v-model="formData.f012n" placeholder="请输入支付的各项税费	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付其他与经营活动有关的现金	单位：元" prop="f013n">
                      <el-input v-model="formData.f013n" placeholder="请输入支付其他与经营活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营活动现金流出小计	单位：元" prop="f014n">
                      <el-input v-model="formData.f014n" placeholder="请输入经营活动现金流出小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营活动产生的现金流量净额	单位：元" prop="f015n">
                      <el-input v-model="formData.f015n" placeholder="请输入经营活动产生的现金流量净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="收回投资收到的现金	单位：元" prop="f016n">
                      <el-input v-model="formData.f016n" placeholder="请输入收回投资收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="取得投资收益收到的现金	单位：元" prop="f017n">
                      <el-input v-model="formData.f017n" placeholder="请输入取得投资收益收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="处置固定资产、无形资产和其他长期资产收回的现金净额	单位：元" prop="f018n">
                      <el-input v-model="formData.f018n" placeholder="请输入处置固定资产、无形资产和其他长期资产收回的现金净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="处置子公司及其他营业单位收到的现金净额	单位：元" prop="f019n">
                      <el-input v-model="formData.f019n" placeholder="请输入处置子公司及其他营业单位收到的现金净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到其他与投资活动有关的现金	单位：元" prop="f020n">
                      <el-input v-model="formData.f020n" placeholder="请输入收到其他与投资活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资活动现金流入小计	单位：元" prop="f021n">
                      <el-input v-model="formData.f021n" placeholder="请输入投资活动现金流入小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="购建固定资产、无形资产和其他长期资产支付的现金	单位：元" prop="f022n">
                      <el-input v-model="formData.f022n" placeholder="请输入购建固定资产、无形资产和其他长期资产支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资支付的现金	单位：元" prop="f023n">
                      <el-input v-model="formData.f023n" placeholder="请输入投资支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="质押贷款净增加额	单位：元" prop="f075n">
                      <el-input v-model="formData.f075n" placeholder="请输入质押贷款净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="取得子公司及其他营业单位支付的现金净额	单位：元" prop="f024n">
                      <el-input v-model="formData.f024n" placeholder="请输入取得子公司及其他营业单位支付的现金净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付其他与投资活动有关的现金	单位：元" prop="f025n">
                      <el-input v-model="formData.f025n" placeholder="请输入支付其他与投资活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资活动现金流出小计	单位：元" prop="f026n">
                      <el-input v-model="formData.f026n" placeholder="请输入投资活动现金流出小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资活动产生的现金流量净额	单位：元" prop="f027n">
                      <el-input v-model="formData.f027n" placeholder="请输入投资活动产生的现金流量净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="吸收投资收到的现金	单位：元" prop="f028n">
                      <el-input v-model="formData.f028n" placeholder="请输入吸收投资收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="其中：子公司吸收少数股东投资收到的现金	单位：元" prop="f089n">
                      <el-input v-model="formData.f089n" placeholder="请输入其中：子公司吸收少数股东投资收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="取得借款收到的现金	单位：元" prop="f029n">
                      <el-input v-model="formData.f029n" placeholder="请输入取得借款收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="发行债券收到的现金	单位：元" prop="f076n">
                      <el-input v-model="formData.f076n" placeholder="请输入发行债券收到的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="收到其他与筹资活动有关的现金	单位：元" prop="f030n">
                      <el-input v-model="formData.f030n" placeholder="请输入收到其他与筹资活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="筹资活动现金流入小计	单位：元" prop="f031n">
                      <el-input v-model="formData.f031n" placeholder="请输入筹资活动现金流入小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="偿还债务支付的现金	单位：元" prop="f032n">
                      <el-input v-model="formData.f032n" placeholder="请输入偿还债务支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="分配股利、利润或偿付利息支付的现金	单位：元" prop="f033n">
                      <el-input v-model="formData.f033n" placeholder="请输入分配股利、利润或偿付利息支付的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="其中：子公司支付给少数股东的股利、利润	单位：元" prop="f090n">
                      <el-input v-model="formData.f090n" placeholder="请输入其中：子公司支付给少数股东的股利、利润	单位：元" />
                    </el-form-item>
                    <el-form-item label="支付其他与筹资活动有关的现金	单位：元" prop="f034n">
                      <el-input v-model="formData.f034n" placeholder="请输入支付其他与筹资活动有关的现金	单位：元" />
                    </el-form-item>
                    <el-form-item label="筹资活动现金流出小计	单位：元" prop="f035n">
                      <el-input v-model="formData.f035n" placeholder="请输入筹资活动现金流出小计	单位：元" />
                    </el-form-item>
                    <el-form-item label="筹资活动产生的现金流量净额	单位：元" prop="f036n">
                      <el-input v-model="formData.f036n" placeholder="请输入筹资活动产生的现金流量净额	单位：元" />
                    </el-form-item>
                    <el-form-item label="汇率变动对现金及现金等价物的影响	单位：元" prop="f037n">
                      <el-input v-model="formData.f037n" placeholder="请输入汇率变动对现金及现金等价物的影响	单位：元" />
                    </el-form-item>
                    <el-form-item label="其他原因对现金的影响	单位：元" prop="f038n">
                      <el-input v-model="formData.f038n" placeholder="请输入其他原因对现金的影响	单位：元" />
                    </el-form-item>
                    <el-form-item label="现金及现金等价物净增加额	单位：元" prop="f039n">
                      <el-input v-model="formData.f039n" placeholder="请输入现金及现金等价物净增加额	单位：元" />
                    </el-form-item>
                    <el-form-item label="期初现金及现金等价物余额	单位：元" prop="f040n">
                      <el-input v-model="formData.f040n" placeholder="请输入期初现金及现金等价物余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="期末现金及现金等价物余额	单位：元" prop="f041n">
                      <el-input v-model="formData.f041n" placeholder="请输入期末现金及现金等价物余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="净利润	单位：元" prop="f044n">
                      <el-input v-model="formData.f044n" placeholder="请输入净利润	单位：元" />
                    </el-form-item>
                    <el-form-item label="加：资产减值准备	单位：元" prop="f045n">
                      <el-input v-model="formData.f045n" placeholder="请输入加：资产减值准备	单位：元" />
                    </el-form-item>
                    <el-form-item label="固定资产折旧、油气资产折耗、生产性生物资产折旧	单位：元" prop="f046n">
                      <el-input v-model="formData.f046n" placeholder="请输入固定资产折旧、油气资产折耗、生产性生物资产折旧	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资性房地产的折旧及摊销	单位：元" prop="f091n">
                      <el-input v-model="formData.f091n" placeholder="请输入投资性房地产的折旧及摊销	单位：元" />
                    </el-form-item>
                    <el-form-item label="无形资产摊销	单位：元" prop="f047n">
                      <el-input v-model="formData.f047n" placeholder="请输入无形资产摊销	单位：元" />
                    </el-form-item>
                    <el-form-item label="长期待摊费用摊销	单位：元" prop="f048n">
                      <el-input v-model="formData.f048n" placeholder="请输入长期待摊费用摊销	单位：元" />
                    </el-form-item>
                    <el-form-item label="处置固定资产、无形资产和其他长期资产的损失	单位：元" prop="f049n">
                      <el-input v-model="formData.f049n" placeholder="请输入处置固定资产、无形资产和其他长期资产的损失	单位：元" />
                    </el-form-item>
                    <el-form-item label="固定资产报废损失	单位：元" prop="f050n">
                      <el-input v-model="formData.f050n" placeholder="请输入固定资产报废损失	单位：元" />
                    </el-form-item>
                    <el-form-item label="公允价值变动损失	单位：元" prop="f051n">
                      <el-input v-model="formData.f051n" placeholder="请输入公允价值变动损失	单位：元" />
                    </el-form-item>
                    <el-form-item label="财务费用	单位：元" prop="f052n">
                      <el-input v-model="formData.f052n" placeholder="请输入财务费用	单位：元" />
                    </el-form-item>
                    <el-form-item label="投资损失	单位：元" prop="f053n">
                      <el-input v-model="formData.f053n" placeholder="请输入投资损失	单位：元" />
                    </el-form-item>
                    <el-form-item label="递延所得税资产减少	单位：元" prop="f054n">
                      <el-input v-model="formData.f054n" placeholder="请输入递延所得税资产减少	单位：元" />
                    </el-form-item>
                    <el-form-item label="递延所得税负债增加	单位：元" prop="f055n">
                      <el-input v-model="formData.f055n" placeholder="请输入递延所得税负债增加	单位：元" />
                    </el-form-item>
                    <el-form-item label="存货的减少	单位：元" prop="f056n">
                      <el-input v-model="formData.f056n" placeholder="请输入存货的减少	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营性应收项目的减少	单位：元" prop="f057n">
                      <el-input v-model="formData.f057n" placeholder="请输入经营性应收项目的减少	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营性应付项目的增加	单位：元" prop="f058n">
                      <el-input v-model="formData.f058n" placeholder="请输入经营性应付项目的增加	单位：元" />
                    </el-form-item>
                    <el-form-item label="其他	单位：元" prop="f059n">
                      <el-input v-model="formData.f059n" placeholder="请输入其他	单位：元" />
                    </el-form-item>
                    <el-form-item label="经营活动产生的现金流量净额-补充资料	单位：元" prop="f060n">
                      <el-input v-model="formData.f060n" placeholder="请输入经营活动产生的现金流量净额-补充资料	单位：元" />
                    </el-form-item>
                    <el-form-item label="债务转为资本	单位：元" prop="f062n">
                      <el-input v-model="formData.f062n" placeholder="请输入债务转为资本	单位：元" />
                    </el-form-item>
                    <el-form-item label="一年内到期的可转换公司债券	单位：元" prop="f063n">
                      <el-input v-model="formData.f063n" placeholder="请输入一年内到期的可转换公司债券	单位：元" />
                    </el-form-item>
                    <el-form-item label="融资租入固定资产	单位：元" prop="f064n">
                      <el-input v-model="formData.f064n" placeholder="请输入融资租入固定资产	单位：元" />
                    </el-form-item>
                    <el-form-item label="现金的期末余额	单位：元" prop="f066n">
                      <el-input v-model="formData.f066n" placeholder="请输入现金的期末余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="减：现金的期初余额	单位：元" prop="f067n">
                      <el-input v-model="formData.f067n" placeholder="请输入减：现金的期初余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="加：现金等价物的期末余额	单位：元" prop="f068n">
                      <el-input v-model="formData.f068n" placeholder="请输入加：现金等价物的期末余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="减：现金等价物的期初余额	单位：元" prop="f069n">
                      <el-input v-model="formData.f069n" placeholder="请输入减：现金等价物的期初余额	单位：元" />
                    </el-form-item>
                    <el-form-item label="加：其他原因对现金的影响-补充资料	单位：元" prop="f070n">
                      <el-input v-model="formData.f070n" placeholder="请输入加：其他原因对现金的影响-补充资料	单位：元" />
                    </el-form-item>
                    <el-form-item label="现金及现金等价物净增加额-补充资料	单位：元" prop="f071n">
                      <el-input v-model="formData.f071n" placeholder="请输入现金及现金等价物净增加额-补充资料	单位：元" />
                    </el-form-item>
                    <el-form-item label="信用减值损失" prop="f096n">
                      <el-input v-model="formData.f096n" placeholder="请输入信用减值损失" />
                    </el-form-item>
                    <el-form-item label="代理买卖证券收到的现金净额	2024年02月新增" prop="f099n">
                      <el-input v-model="formData.f099n" placeholder="请输入代理买卖证券收到的现金净额	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响经营活动现金流入的其他科目	2024年02月新增" prop="f100n">
                      <el-input v-model="formData.f100n" placeholder="请输入影响经营活动现金流入的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="拆出资金净增加额	2024年02月新增" prop="f101n">
                      <el-input v-model="formData.f101n" placeholder="请输入拆出资金净增加额	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响经营活动现金流出的其他科目	2024年02月新增" prop="f102n">
                      <el-input v-model="formData.f102n" placeholder="请输入影响经营活动现金流出的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响投资活动现金流入的其他科目	2024年02月新增" prop="f103n">
                      <el-input v-model="formData.f103n" placeholder="请输入影响投资活动现金流入的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响投资活动现金流出的其他科目	2024年02月新增" prop="f104n">
                      <el-input v-model="formData.f104n" placeholder="请输入影响投资活动现金流出的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响筹资活动现金流入的其他科目	2024年02月新增" prop="f105n">
                      <el-input v-model="formData.f105n" placeholder="请输入影响筹资活动现金流入的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响筹资活动现金流出的其他科目	2024年02月新增" prop="f106n">
                      <el-input v-model="formData.f106n" placeholder="请输入影响筹资活动现金流出的其他科目	2024年02月新增" />
                    </el-form-item>
                    <el-form-item label="影响经营活动现金流量净额的其他科目-补充资料	2024年02月新增" prop="f107n">
                      <el-input v-model="formData.f107n" placeholder="请输入影响经营活动现金流量净额的其他科目-补充资料	2024年02月新增" />
                    </el-form-item>
      </el-form>
              <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm" :disabled="formLoading">确 定</el-button>
        <el-button @click="dialogVisible = false">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  import * as XjBaseApi from '@/api/invest/xjbase';
      export default {
    name: "XjBaseForm",
    components: {
                    },
    data() {
      return {
        // 弹出层标题
        dialogTitle: "",
        // 是否显示弹出层
        dialogVisible: false,
        // 表单的加载中：1）修改时的数据加载；2）提交的按钮禁用
        formLoading: false,
        // 表单参数
        formData: {
                            id: undefined,
                            secname: undefined,
                            seccode: undefined,
                            orgname: undefined,
                            declaredate: undefined,
                            startdate: undefined,
                            enddate: undefined,
                            f001d: undefined,
                            f002v: undefined,
                            f003v: undefined,
                            f004v: undefined,
                            f005v: undefined,
                            f006n: undefined,
                            f072n: undefined,
                            f073n: undefined,
                            f074n: undefined,
                            f077n: undefined,
                            f078n: undefined,
                            f079n: undefined,
                            f080n: undefined,
                            f081n: undefined,
                            f082n: undefined,
                            f083n: undefined,
                            f007n: undefined,
                            f008n: undefined,
                            f009n: undefined,
                            f010n: undefined,
                            f084n: undefined,
                            f085n: undefined,
                            f086n: undefined,
                            f087n: undefined,
                            f088n: undefined,
                            f011n: undefined,
                            f012n: undefined,
                            f013n: undefined,
                            f014n: undefined,
                            f015n: undefined,
                            f016n: undefined,
                            f017n: undefined,
                            f018n: undefined,
                            f019n: undefined,
                            f020n: undefined,
                            f021n: undefined,
                            f022n: undefined,
                            f023n: undefined,
                            f075n: undefined,
                            f024n: undefined,
                            f025n: undefined,
                            f026n: undefined,
                            f027n: undefined,
                            f028n: undefined,
                            f089n: undefined,
                            f029n: undefined,
                            f076n: undefined,
                            f030n: undefined,
                            f031n: undefined,
                            f032n: undefined,
                            f033n: undefined,
                            f090n: undefined,
                            f034n: undefined,
                            f035n: undefined,
                            f036n: undefined,
                            f037n: undefined,
                            f038n: undefined,
                            f039n: undefined,
                            f040n: undefined,
                            f041n: undefined,
                            f044n: undefined,
                            f045n: undefined,
                            f046n: undefined,
                            f091n: undefined,
                            f047n: undefined,
                            f048n: undefined,
                            f049n: undefined,
                            f050n: undefined,
                            f051n: undefined,
                            f052n: undefined,
                            f053n: undefined,
                            f054n: undefined,
                            f055n: undefined,
                            f056n: undefined,
                            f057n: undefined,
                            f058n: undefined,
                            f059n: undefined,
                            f060n: undefined,
                            f062n: undefined,
                            f063n: undefined,
                            f064n: undefined,
                            f066n: undefined,
                            f067n: undefined,
                            f068n: undefined,
                            f069n: undefined,
                            f070n: undefined,
                            f071n: undefined,
                            f096n: undefined,
                            f099n: undefined,
                            f100n: undefined,
                            f101n: undefined,
                            f102n: undefined,
                            f103n: undefined,
                            f104n: undefined,
                            f105n: undefined,
                            f106n: undefined,
                            f107n: undefined,
        },
        // 表单校验
        formRules: {
        },
                        };
    },
    methods: {
      /** 打开弹窗 */
     async open(id) {
        this.dialogVisible = true;
        this.reset();
        // 修改时，设置数据
        if (id) {
          this.formLoading = true;
          try {
            const res = await XjBaseApi.getXjBase(id);
            this.formData = res.data;
            this.title = "修改个股报告期现金";
          } finally {
            this.formLoading = false;
          }
        }
        this.title = "新增个股报告期现金";
              },
      /** 提交按钮 */
      async submitForm() {
        // 校验主表
        await this.$refs["formRef"].validate();
                  this.formLoading = true;
        try {
          const data = this.formData;
                  // 修改的提交
          if (data.id) {
            await XjBaseApi.updateXjBase(data);
            this.$modal.msgSuccess("修改成功");
            this.dialogVisible = false;
            this.$emit('success');
            return;
          }
          // 添加的提交
          await XjBaseApi.createXjBase(data);
          this.$modal.msgSuccess("新增成功");
          this.dialogVisible = false;
          this.$emit('success');
        } finally {
          this.formLoading = false;
        }
      },
                      /** 表单重置 */
      reset() {
        this.formData = {
                            id: undefined,
                            secname: undefined,
                            seccode: undefined,
                            orgname: undefined,
                            declaredate: undefined,
                            startdate: undefined,
                            enddate: undefined,
                            f001d: undefined,
                            f002v: undefined,
                            f003v: undefined,
                            f004v: undefined,
                            f005v: undefined,
                            f006n: undefined,
                            f072n: undefined,
                            f073n: undefined,
                            f074n: undefined,
                            f077n: undefined,
                            f078n: undefined,
                            f079n: undefined,
                            f080n: undefined,
                            f081n: undefined,
                            f082n: undefined,
                            f083n: undefined,
                            f007n: undefined,
                            f008n: undefined,
                            f009n: undefined,
                            f010n: undefined,
                            f084n: undefined,
                            f085n: undefined,
                            f086n: undefined,
                            f087n: undefined,
                            f088n: undefined,
                            f011n: undefined,
                            f012n: undefined,
                            f013n: undefined,
                            f014n: undefined,
                            f015n: undefined,
                            f016n: undefined,
                            f017n: undefined,
                            f018n: undefined,
                            f019n: undefined,
                            f020n: undefined,
                            f021n: undefined,
                            f022n: undefined,
                            f023n: undefined,
                            f075n: undefined,
                            f024n: undefined,
                            f025n: undefined,
                            f026n: undefined,
                            f027n: undefined,
                            f028n: undefined,
                            f089n: undefined,
                            f029n: undefined,
                            f076n: undefined,
                            f030n: undefined,
                            f031n: undefined,
                            f032n: undefined,
                            f033n: undefined,
                            f090n: undefined,
                            f034n: undefined,
                            f035n: undefined,
                            f036n: undefined,
                            f037n: undefined,
                            f038n: undefined,
                            f039n: undefined,
                            f040n: undefined,
                            f041n: undefined,
                            f044n: undefined,
                            f045n: undefined,
                            f046n: undefined,
                            f091n: undefined,
                            f047n: undefined,
                            f048n: undefined,
                            f049n: undefined,
                            f050n: undefined,
                            f051n: undefined,
                            f052n: undefined,
                            f053n: undefined,
                            f054n: undefined,
                            f055n: undefined,
                            f056n: undefined,
                            f057n: undefined,
                            f058n: undefined,
                            f059n: undefined,
                            f060n: undefined,
                            f062n: undefined,
                            f063n: undefined,
                            f064n: undefined,
                            f066n: undefined,
                            f067n: undefined,
                            f068n: undefined,
                            f069n: undefined,
                            f070n: undefined,
                            f071n: undefined,
                            f096n: undefined,
                            f099n: undefined,
                            f100n: undefined,
                            f101n: undefined,
                            f102n: undefined,
                            f103n: undefined,
                            f104n: undefined,
                            f105n: undefined,
                            f106n: undefined,
                            f107n: undefined,
        };
        this.resetForm("formRef");
      }
    }
  };
</script>